/*    */ package com.qmsk.business.info.taskRemind.controller;
/*    */ 
/*    */ import com.qmsk.business.info.taskRemind.dao.TaskRemindDao;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/taskRemind"})
/*    */ public class TaskRemindController
/*    */ {
/* 27 */   private static final Logger logger = Logger.getLogger(TaskRemindController.class);
/*    */ 
/*    */   @Autowired
/*    */   private TaskRemindDao dao;
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}/opt/{pageIdx}/{pageSize}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOpt(HttpServletRequest request, HttpServletResponse response, @PathVariable("shopId") Integer shopId, @PathVariable("pageIdx") Integer nPageIdx, @PathVariable("pageSize") Short nPageSize)
/*    */   {
/* 47 */     nPageSize = RequestUtils.getRequestValidPageSize(nPageSize);
/*    */     try {
/* 49 */       Map params = new HashMap();
/* 50 */       MapUtils.addToMap(params, "type", RequestUtils.getString(request, "type"));
/* 51 */       MapUtils.addPercentToMap(params, "license", RequestUtils.getString(request, "license"));
/* 52 */       MapUtils.addPercentToMap(params, "custName", RequestUtils.getString(request, "custName"));
/* 53 */       MapUtils.addPercentToMap(params, "mp", RequestUtils.getString(request, "mp"));
/* 54 */       MapUtils.addToMap(params, "dtCreateBegin", RequestUtils.getDate(request, "dtCreateBegin"));
/* 55 */       MapUtils.addToMap(params, "dtCreateEnd", RequestUtils.getDate(request, "dtCreateEnd"));
/* 56 */       MapUtils.addToMap(params, "status", RequestUtils.getInt(request, "status"));
/* 57 */       MapUtils.addToMap(params, "shopId", RequestUtils.getInt(request, "shopId"));
/* 58 */       GsonEbRst gsonEbRst = this.dao.getListOpt(params, nPageIdx, nPageSize);
/* 59 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 61 */       logger.error(e);
/* 62 */       ResponseUtils.setErrorMsgResponse(
/* 63 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.info.taskRemind.controller.TaskRemindController
 * JD-Core Version:    0.5.3
 */